home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1996 September
/
MACPOWER-1996-09.ISO.7z
/
MACPOWER-1996-09.ISO
/
第2特集:プラグイン大集合
/
PIC2 Save
/
PIC2PlugIn.h
< prev
next >
Wrap
Text File
|
1995-01-16
|
2KB
|
108 lines
/*
File: pic2plug.h
Copyright © 1994 K&M Software Corporation (番犬 JBE01713@nifty)
Portions © 1992 Adobe Systems Incorporated
Apple Computer, Inc.
© 1994 Metrowerks, Inc.
PIC2 Format © やなぎさわ
1994/11/06 new!
*/
#pragma once
// for memcmp, memcpy, memset
#include <string.h>
#include <setjmp.h>
#ifdef MPW
#include <Types.h>
#include <Events.h>
#include <Memory.h>
#include <Resources.h>
#include <Quickdraw.h>
#include <Controls.h>
#include <Dialogs.h>
#include <OSUtils.h>
#include <Packages.h>
#include <Errors.h>
#include <ToolUtils.h>
#define TRUE 1
#define FALSE 0
#endif
#include "ExportInterface.h"
/*****************************************************************************/
/* Global variables */
typedef struct GlobalData
{
ExportRecordPtr stuff;
short result;
Byte* pixelData;
long rowBytes;
long filesize;
short BitsDepth; // copy of p2->header.depth
FSSpec theSpec; // File Spec
P2* p2;
short colorMode,compressMode;
char title[64];
char comment[256];
char author[32];
short picindex;
short cLine;
pix *Pixel;
long partial,total;
Boolean buffer_end;
} Globals, *GPtr, **GHdl;
/*****************************************************************************/
#define gStuff ((**globals).stuff)
#define gResult ((**globals).result)
#define gPixelData ((**globals).pixelData)
#define gRowBytes ((**globals).rowBytes)
/*****************************************************************************/
#define kStringID 17000
#define kStrSavePromptItem 1
#define kStrMemErrItem 2
#define kStrSaverItem 3
#define kStrCreatorID 4
#define kStrTypeID 5
#define kStrEOFErrItem 6
#define kStrFormatErrItem 7
#define kAboutDialogID 17000
#define kErrorDialogID 17001
#define kMainDialogID 17002
#define cPIC2SaveVersion "¥p1.1"
#ifdef __MWERKS__
#define ENTRYPOINT main
#endif
#if defined(MainModule)
#define GlobalDef
#else
#define GlobalDef extern
#endif
#undef GlobalDef
#include "Prototypes.h"